#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

; Kill leftover
	Local $PID=9999
	While $PID>0
		$PID = ProcessExists("hbrelog.exe") ; Will return the PID or 0 if the process isn't found.
		If $PID Then ProcessClose($PID)
   Wend
	Sleep(5000) ;five seconds
	
	Local $PID=9999
	While $PID>0
		$PID = ProcessExists("wow.exe") ; Will return the PID or 0 if the process isn't found.
		If $PID Then ProcessClose($PID)
		 Sleep(1000)
	Wend
	Sleep(5000) ;five seconds
	Local $PID=9999
	While $PID>0
		$PID = ProcessExists("honorbuddy.exe") ; Will return the PID or 0 if the process isn't found.
		If $PID Then ProcessClose($PID)
		 Sleep(1000)
	Wend

; Twice to be secure
Sleep(20000)

; Kill leftover
	Local $PID=9999
	While $PID>0
		$PID = ProcessExists("hbrelog.exe") ; Will return the PID or 0 if the process isn't found.
		If $PID Then ProcessClose($PID)
   Wend
	Sleep(5000) ;five seconds
	
	Local $PID=9999
	While $PID>0
		$PID = ProcessExists("wow.exe") ; Will return the PID or 0 if the process isn't found.
		If $PID Then ProcessClose($PID)
		 Sleep(1000)
	Wend
	Sleep(5000) ;five seconds
	Local $PID=9999
	While $PID>0
		$PID = ProcessExists("honorbuddy.exe") ; Will return the PID or 0 if the process isn't found.
		If $PID Then ProcessClose($PID)
		 Sleep(1000)
	Wend